﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MovimentoBovespa.aspx.cs" Inherits="NUP.MovimentoBovespa" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    Empresa:
        <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
            SelectMethod="SelTodos" DeleteMethod="Deletar" InsertMethod="Salvar" UpdateMethod="Atualizar" 
            TypeName="Camadas.MovBovespaBO" DataObjectTypeName="Camadas.MovBovespaTO"></asp:ObjectDataSource>    
            
        <asp:ObjectDataSource ID="ObjectDataSource2" runat="server" 
            SelectMethod="SelMov" DeleteMethod="Deletar" InsertMethod="Salvar" UpdateMethod="Atualizar" 
            TypeName="Camadas.ItensBovespaBO" 
            DataObjectTypeName="Camadas.ItensBovespaTO">
            <SelectParameters>
                <asp:ControlParameter ControlID="GridView3" Name="Chave" 
                    PropertyName="SelectedValue" Type="String" />
            </SelectParameters>
        </asp:ObjectDataSource>    
            
        <br />
        
        <asp:GridView ID="GridView3" runat="server" CellPadding="4" 
            DataKeyNames="UId" DataSourceID="ObjectDataSource1" ForeColor="#333333" 
            GridLines="None" AutoGenerateSelectButton="True">
            <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
            <Columns>
                <asp:CommandField ShowDeleteButton="True" ShowEditButton="True" />
            </Columns>
            <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
            <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
            <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <EditRowStyle BackColor="#999999" />
            <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
        </asp:GridView>
          <br />
        <br />
         
        <asp:DetailsView ID="DetailsView1" runat="server" Height="50px" Width="125px" 
            AutoGenerateRows="False" DataKeyNames="UId" DataSourceID="ObjectDataSource1" 
            DefaultMode="Insert" EnableModelValidation="True" EnablePagingCallbacks="True">
            <Fields>
                <asp:BoundField ConvertEmptyStringToNull="False" DataField="UId" 
                    HeaderText="UId" InsertVisible="False" ReadOnly="True" SortExpression="UId" />
                <asp:BoundField DataField="NumeroDaNota" HeaderText="NumeroDaNota" 
                    SortExpression="NumeroDaNota" />
                <asp:BoundField DataField="ValorMovimento" HeaderText="ValorMovimento" 
                    SortExpression="ValorMovimento" />
                <asp:BoundField DataField="ValorCorretagem" HeaderText="ValorCorretagem" 
                    SortExpression="ValorCorretagem" />
                <asp:BoundField DataField="Corretora" HeaderText="Corretora" 
                    SortExpression="Corretora" />
                <asp:BoundField DataField="Data" HeaderText="Data" SortExpression="Data" />
                <asp:BoundField DataField="ISS" HeaderText="ISS" SortExpression="ISS" />
                <asp:BoundField DataField="Emulandos" HeaderText="Emulandos" 
                    SortExpression="Emulandos" />
                <asp:BoundField DataField="TaxaDeLiquidacao" HeaderText="TaxaDeLiquidacao" 
                    SortExpression="TaxaDeLiquidacao" />
                <asp:BoundField DataField="ValorTotal" HeaderText="ValorTotal" 
                    SortExpression="ValorTotal" />
                <asp:CommandField ShowInsertButton="True" />
            </Fields>
        </asp:DetailsView> 
        <br />
        <br />
        <asp:GridView ID="GridView4" runat="server" AutoGenerateColumns="False" 
            DataSourceID="ObjectDataSource2">
            <Columns>
                <asp:BoundField DataField="UId" HeaderText="UId" ReadOnly="True" 
                    SortExpression="UId" />
                <asp:BoundField DataField="Praca" HeaderText="Praca" SortExpression="Praca" />
                <asp:BoundField DataField="Procedimento" HeaderText="Procedimento" 
                    SortExpression="Procedimento" />
                <asp:BoundField DataField="Mercado" HeaderText="Mercado" 
                    SortExpression="Mercado" />
                <asp:BoundField DataField="Prazo" HeaderText="Prazo" SortExpression="Prazo" />
                <asp:BoundField DataField="Titulo" HeaderText="Titulo" 
                    SortExpression="Titulo" />
                <asp:BoundField DataField="Quantidade" HeaderText="Quantidade" 
                    SortExpression="Quantidade" />
                <asp:BoundField DataField="Preco" HeaderText="Preco" SortExpression="Preco" />
                <asp:BoundField DataField="CompraVenda" HeaderText="CompraVenda" 
                    SortExpression="CompraVenda" />
                <asp:BoundField DataField="Operacao" HeaderText="Operacao" 
                    SortExpression="Operacao" />
            </Columns>
        </asp:GridView>
        <br />
        <br />
        <asp:DetailsView ID="DetailsView2" runat="server" Height="50px" Width="125px" 
            AutoGenerateRows="False" DataSourceID="ObjectDataSource2" DefaultMode="Insert">
            <Fields>
                <asp:BoundField DataField="UId" HeaderText="UId" InsertVisible="False" 
                    ReadOnly="True" SortExpression="UId" />
                <asp:BoundField DataField="Praca" HeaderText="Praca" SortExpression="Praca" />
                <asp:BoundField DataField="Procedimento" HeaderText="Procedimento" 
                    SortExpression="Procedimento" />
                <asp:BoundField DataField="Mercado" HeaderText="Mercado" 
                    SortExpression="Mercado" />
                <asp:BoundField DataField="Prazo" HeaderText="Prazo" SortExpression="Prazo" />
                <asp:BoundField DataField="Titulo" HeaderText="Titulo" 
                    SortExpression="Titulo" />
                <asp:BoundField DataField="Quantidade" HeaderText="Quantidade" 
                    SortExpression="Quantidade" />
                <asp:BoundField DataField="Preco" HeaderText="Preco" SortExpression="Preco" />
                <asp:BoundField DataField="CompraVenda" HeaderText="CompraVenda" 
                    SortExpression="CompraVenda" />
                <asp:BoundField DataField="Operacao" HeaderText="Operacao" 
                    SortExpression="Operacao" />
                <asp:CommandField ShowInsertButton="True" />
            </Fields>
        </asp:DetailsView>
        
    </div>
    </form>
</body>
</html>
